package com.jr.pojo2;

import java.math.BigDecimal;
import java.util.Date;

/* 员工表 + 薪资表 + 用户表  多表查询用 */
public class EmpSalUsers {

    private Integer employeeId; //员工Id
    private String name; //员工姓名
    private Integer age; //年龄

    private Integer positionId; //职位Id
    private Integer departmentId; //部门Id
    private Date hireDate; //入职时间

    private BigDecimal baseSalary; //基本工资 -- 来自 薪资表salaries
    private String phoneNumber; //手机号码 -- users
    private String email; //电子邮箱 -- users

    public EmpSalUsers() {
    }

    public EmpSalUsers(Integer employeeId, String name, Integer age,
                       Integer positionId, Integer departmentId, Date hireDate,
                       BigDecimal baseSalary, String phoneNumber, String email) {
        this.employeeId = employeeId;
        this.name = name;
        this.age = age;
        this.positionId = positionId;
        this.departmentId = departmentId;
        this.hireDate = hireDate;
        this.baseSalary = baseSalary;
        this.phoneNumber = phoneNumber;
        this.email = email;
    }

    @Override
    public String toString() {
        return "EmpSalUsers{" +
                "employeeId=" + employeeId +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", positionId=" + positionId +
                ", departmentId=" + departmentId +
                ", hireDate=" + hireDate +
                ", baseSalary=" + baseSalary +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", email='" + email + '\'' +
                '}';
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public BigDecimal getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(BigDecimal baseSalary) {
        this.baseSalary = baseSalary;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
